﻿slider_mc.onPress = function() {
	set_volume();
	slider_mc.startDrag(false, 0, slider_mc._y, 100*_parent.escala_barra_volumen, slider_mc._y);
};
slider_mc.onRelease = slider_mc.onReleaseOutside=function () {
	slider_mc.gotoAndStop(1);
	_parent.tool_tips_visible = false;
	stopDrag();
	delete slider_mc.onMouseMove;
};
slider_mc.onRollOver = function() {
	_parent.tool_tips_mc.tool_tips_txt.text = "% "+_parent.mp3_player.getVolume();
	_parent.tool_tips_visible = true;
	slider_mc.gotoAndStop(2);
};
slider_mc.onRollOut = function() {
	_parent.tool_tips_visible = false;
	slider_mc.gotoAndStop(1);
};
set_volume = function () {
	slider_mc.onMouseMove = function() {
		_parent.mute = false;
		_parent.mute_mc.gotoAndStop("mute_off");
		_parent.mp3_player.setVolume(Math.ceil(slider_mc._x/_parent.escala_barra_volumen));
		_parent.tool_tips_mc.tool_tips_txt.text = "% "+_parent.mp3_player.getVolume();
		_parent.player_volume = _parent.mp3_player.getVolume();
		volume_bar_mc._width=_parent.mp3_player.getVolume()*_parent.escala_barra_volumen;
	};
};
